Logind recently got support for a hint property in Session Object to
inform if session is Locked or not. It is up to desktop environments
to keep this property up to date.
https://bugzilla.gnome.org/show_bug.cgi?id=764773
<signal name="Lock" /> \
<signal name="Unlock" /> \
<property name="Active" type="b" access="read" /> \
+<method name="SetLockedHint"> \
+ <arg type="b" direction="in"/> \
+</method> \
</interface> \
</node>';
if (prevIsActive != this._isActive)
this.emit('active-changed');
+ if (this._loginSession)
+ this._loginSession.SetLockedHintRemote(active);
+
this._syncInhibitor();
},